﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class WeaponNPC:ShopNPC
    {
        public string weapon { get; set; }
        public WeaponNPC(string name,NpcType type,string weapon):base(name,type)
        {
            this.name = name;
            this.type = type;
            this.weapon = weapon;
        }

        public override void Speak()
        {
            Console.WriteLine("我是{0}，我能{1}",base.name,this.weapon);
        }
    }
}
